﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysConfig.Request;
/// <summary>
/// 通过配置编号更新系统配置请求实体
/// </summary>
public class RequestUpdateSysConfigByConfigIdModel : RequestBaseModel
{
    /// <summary>
    /// 配置编号
    /// </summary>
    [Required(ErrorMessage = "配置编号不能为空")]
    public int ConfigId { get; set; }
    /// <summary>
    /// 配置名称
    /// </summary>
    [Required(ErrorMessage = "配置名称不能为空")]
    public string? ConfigName { get; set; }
    /// <summary>
    /// 配置键名
    /// </summary>
    [Required(ErrorMessage = "配置键名不能为空")]
    public string? ConfigKey { get; set; }
    /// <summary>
    /// 配置键值
    /// </summary>
    [Required(ErrorMessage = "配置键值不能为空")]
    public string? ConfigValue { get; set; }
    /// <summary>
    /// 系统内置（Y系统内置 M图片 F文件 T文本）
    /// </summary>
    [Required(ErrorMessage = "配置类型不能为空")]
    public string? ConfigType { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}

